# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
from django.conf import settings


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Case',
            fields=[
                ('id', models.AutoField(serialize=False, primary_key=True)),
                ('name', models.CharField(max_length=200)),
                ('description', models.TextField()),
                ('setup', models.CharField(max_length=200)),
                ('teardown', models.CharField(max_length=200)),
                ('timeout', models.CharField(max_length=200)),
                ('template', models.CharField(max_length=200)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='CaseDetails',
            fields=[
                ('id', models.AutoField(serialize=False, primary_key=True)),
                ('detail', models.TextField()),
                ('created_time', models.DateTimeField(help_text='created date', auto_now_add=True)),
                ('updated_time', models.DateTimeField(help_text='updated date', auto_now=True)),
                ('case', models.ForeignKey(to='WebPlatform.Case')),
                ('created_user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Library',
            fields=[
                ('id', models.AutoField(serialize=False, primary_key=True)),
                ('name', models.CharField(max_length=200)),
                ('description', models.TextField(max_length=200)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='ListVariable',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(max_length=200)),
                ('value', models.TextField()),
                ('comment', models.TextField()),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Project',
            fields=[
                ('id', models.AutoField(serialize=False, primary_key=True)),
                ('name', models.CharField(max_length=200)),
                ('description', models.TextField()),
                ('status', models.CharField(max_length=2, choices=[(b'Open', b'\xe5\x90\xaf\xe7\x94\xa8'), (b'Close', b'\xe5\x85\xb3\xe9\x97\xad')])),
                ('created_time', models.DateTimeField(help_text='created date', auto_now_add=True)),
                ('updated_time', models.DateTimeField(help_text='updated date', auto_now=True)),
                ('created_user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Report',
            fields=[
                ('id', models.AutoField(serialize=False, primary_key=True)),
                ('content', models.TextField()),
                ('detail', models.TextField()),
                ('error', models.TextField()),
                ('created_time', models.DateTimeField(help_text='created date', auto_now_add=True)),
                ('case', models.ForeignKey(to='WebPlatform.Case')),
                ('created_user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='ReportDetail',
            fields=[
                ('id', models.AutoField(serialize=False, primary_key=True)),
                ('detail', models.TextField()),
                ('static', models.CharField(max_length=2, choices=[(b'PASS', b'\xe6\x88\x90\xe5\x8a\x9f'), (b'Failed', b'\xe5\xa4\xb1\xe8\xb4\xa5')])),
                ('ReportID', models.ForeignKey(to='WebPlatform.Report')),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Resource',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(max_length=200)),
                ('description', models.TextField()),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Scalar',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(max_length=200)),
                ('value', models.TextField(max_length=200)),
                ('comment', models.TextField()),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Suite',
            fields=[
                ('id', models.AutoField(serialize=False, primary_key=True)),
                ('name', models.CharField(max_length=200)),
                ('description', models.TextField()),
                ('suiteSetup', models.CharField(max_length=200)),
                ('suiteTeardown', models.CharField(max_length=200)),
                ('testSetup', models.CharField(max_length=200)),
                ('testTemplate', models.CharField(max_length=200)),
                ('testTimeout', models.CharField(max_length=200)),
                ('project', models.ForeignKey(to='WebPlatform.Project')),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.AddField(
            model_name='scalar',
            name='suite',
            field=models.ForeignKey(to='WebPlatform.Suite'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='resource',
            name='suite',
            field=models.ForeignKey(to='WebPlatform.Suite'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='listvariable',
            name='suite',
            field=models.ForeignKey(to='WebPlatform.Suite'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='library',
            name='suite',
            field=models.ForeignKey(to='WebPlatform.Suite'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='case',
            name='suite',
            field=models.ForeignKey(to='WebPlatform.Suite'),
            preserve_default=True,
        ),
    ]
